package models

import (
	"go-caipu/pkg/services/dto"
)

type SysConfig struct {
	ConfigId    int64  `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`
	ConfigName  string `json:"configName" gorm:"type:varchar(255);comment:参数名称"`
	ConfigKey   string `json:"configKey" gorm:"type:varchar(255);comment:参数键值"`
	ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:参数值"`
	Sort        int    `json:"sort" gorm:"type:int;comment:排序"`
	ConfigType  string `json:"configType" gorm:"type:varchar(64);comment:系统内置"`
	IsFrontend  int    `json:"isFrontend" gorm:"type:int;comment:前台显示"`
	Remark      string `json:"remark" gorm:"type:varchar(255);comment:Remark"`
	dto.ControlBy
	dto.ModelTime
}

func (SysConfig) TableName() string {
	return "sys_config"
}
